package com.caltco.cargo.ops.modules.sys.entity.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.caltco.cargo.ops.modules.sys.config.JsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

@Data
@Schema(description = "单词条目")
@JsonIgnoreProperties(ignoreUnknown = true)
public class RelWord implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "词性")
    @TableField(typeHandler = JsonTypeHandler.class)
    private String pos;

    @Schema(description = "单词")
    @TableField(typeHandler = JsonTypeHandler.class)
    private List<RelWordChild> words;

}
